package com.xqboss.apps.vo.websocket;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * socket返回信息
 * </p>
 *
 * @author Administrator
 */
@Data
public class SocketVo {

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("接收人")
    private String toUserId;

    @ApiModelProperty("session")
    private String sessionId;

    @ApiModelProperty("时间戳")
    private LocalDateTime timestamp;

    @ApiModelProperty("消息类型 好友（0申请添加,1同意,2拒绝）队伍（3申请加入,4邀请加入,5同意加入,6拒绝加入,7退出队伍,8管理员变更,9增益结算,10点赞,11送爱心,12提现打卡,13打卡成功）打卡（14即将打卡）")
    private Integer type;

    @ApiModelProperty("源id")
    private Long sourceId;

    @ApiModelProperty("消息类容")
    private String msg;

    @ApiModelProperty("用户头像")
    private String avatar;

    public SocketVo(String userId, String toUserId, String sessionId, LocalDateTime timestamp, Integer type, Long sourceId, String msg, String avatar) {
        this.userId = userId;
        this.toUserId = toUserId;
        this.sessionId = sessionId;
        this.timestamp = timestamp;
        this.type = type;
        this.sourceId = sourceId;
        this.msg = msg;
        this.avatar = avatar;
    }
}
